<?php
 FLEA::loadClass('FLEA_Rbac_UsersManager'); class FLEA_Acl_Table_Users extends FLEA_Rbac_UsersManager { var $belongsTo = array( array( 'tableClass' => 'FLEA_Acl_Table_UserGroups', 'foreignKey' => 'user_group_id', 'mappingName' => 'group', ), ); var $manyToMany = array( array( 'tableClass' => 'FLEA_Acl_Table_Roles', 'foreignKey' => 'user_id', 'assocForeignKey' => 'role_id', 'joinTableClass' => 'FLEA_Acl_Table_UsersHasRoles', 'mappingName' => 'roles', ), array( 'tableClass' => 'FLEA_Acl_Table_Permissions', 'foreignKey' => 'user_id', 'assocForeignKey' => 'permission_id', 'joinTableClass' => 'FLEA_Acl_Table_UsersHasPermissions', 'mappingName' => 'permissions', ), ); } 